package com.dalin.platform.loa.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                                                                                                  *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-11                                                     *
 * @modDate: 2010-06-11                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LoaDicItemCondition extends Condition {
    private Long typeId; // TYPE_ID,16,0
    private Integer itemCode; // ITEM_CODE,8,0
    private String itemName; // ITEM_NAME,256,0
    private String parentId; // PARENT_ITEM_CODE,8,0
    private String remark; // REMARK,256,0
    private Integer valid = 1; // VALID,2,0

    public LoaDicItemCondition prepareParams() {
        setBaseQueryStr("from LoaDicItemEntity h");
        setParam("h.typeId", "=", typeId);
        setParam("h.itemCode", "=", itemCode);
        setParam("h.itemName", "like", "%" + itemName + "%");
        setParam("h.parentItemCode", "=", parentId);
        setParam("h.remark", "like", "%" + remark + "%");
        setParam("h.valid", "=", valid);
        setOrderBy("h.orderNumber asc");
        return this;
    }

    
    
	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public Integer getItemCode() {
		return itemCode;
	}

	public void setItemCode(Integer itemCode) {
		this.itemCode = itemCode;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	

	public String getParentId() {
		return parentId;
	}



	public void setParentId(String parentId) {
		this.parentId = parentId;
	}



	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getValid() {
		return valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}
}
